<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>07键盘事件</title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			<input type="text" placeholder="按下回车提示输入" @keyup.Enter="jianpan"/>
		</div>
		<script type="text/javascript">
			var root = new Vue({
				el:"#root",
				data:{
					
				},
				methods:{
					jianpan:function(e){
						console.log(e.target.value);
					},
				},
			})
		</script>
	</body>
</html>
